// license-header java merge-point
/**
 * This is only generated once! It will never be overwritten.
 * You can (and have to!) safely modify it by hand.
 */
package com.orange.domain;
/**
 * @see com.orange.domain.Employer
 */
public class EmployerDaoImpl
    extends com.orange.domain.EmployerDaoBase
{
    /**
     * @see com.orange.domain.EmployerDao#toEmployerValue(com.orange.domain.Employer, com.orange.domain.EmployerValue)
     */
    public void toEmployerValue(
        com.orange.domain.Employer source,
        com.orange.domain.EmployerValue target)
    {
        // @todo verify behavior of toEmployerValue
        super.toEmployerValue(source, target);
    }


    /**
     * @see com.orange.domain.EmployerDao#toEmployerValue(com.orange.domain.Employer)
     */
    public com.orange.domain.EmployerValue toEmployerValue(final com.orange.domain.Employer entity)
    {
        // @todo verify behavior of toEmployerValue
        return super.toEmployerValue(entity);
    }


    /**
     * Retrieves the entity object that is associated with the specified value object
     * from the object store. If no such entity object exists in the object store,
     * a new, blank entity is created
     */
    private com.orange.domain.Employer loadEmployerFromEmployerValue(com.orange.domain.EmployerValue employerValue)
    {
        // @todo implement loadEmployerFromEmployerValue
        throw new java.lang.UnsupportedOperationException("com.orange.domain.loadEmployerFromEmployerValue(com.orange.domain.EmployerValue) not yet implemented.");

        /* A typical implementation looks like this:
        com.orange.domain.Employer employer = this.load(employerValue.getId());
        if (employer == null)
        {
            employer = com.orange.domain.Employer.Factory.newInstance();
        }
        return employer;
        */
    }

    
    /**
     * @see com.orange.domain.EmployerDao#employerValueToEntity(com.orange.domain.EmployerValue)
     */
    public com.orange.domain.Employer employerValueToEntity(com.orange.domain.EmployerValue employerValue)
    {
        // @todo verify behavior of employerValueToEntity
        com.orange.domain.Employer entity = this.loadEmployerFromEmployerValue(employerValue);
        this.employerValueToEntity(employerValue, entity, true);
        return entity;
    }


    /**
     * @see com.orange.domain.EmployerDao#employerValueToEntity(com.orange.domain.EmployerValue, com.orange.domain.Employer)
     */
    public void employerValueToEntity(
        com.orange.domain.EmployerValue source,
        com.orange.domain.Employer target,
        boolean copyIfNull)
    {
        // @todo verify behavior of employerValueToEntity
        super.employerValueToEntity(source, target, copyIfNull);
    }

}